package com.xkcoding.task.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "样例实体类")
@TableName(value = "demo")
public class DemoEntity {

    @Schema(description = "主键", required = true, example = "abc123")
    @TableId(value = "index_code", type = IdType.UUID)
    private String indexCode;

    @Schema(description = "姓名", example = "张三")
    @TableField(value = "user_name")
    private String userName;

}
